package com.itlong.cloud.project.app;

import com.itlong.cloud.POJO.VO.app.AppForeignProjectAddressVO;
import com.itlong.cloud.POJO.VO.app.AppNewProjectAddressVO;
import com.itlong.cloud.POJO.VO.app.AppProjectAddressVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 *<desc>
 *     新版APP的地址信息接口代理
 *</desc>
 *
 * @createDate 2017/9/28.
 */

@FeignClient(name="project-service")
public interface IAppProjectAddressServiceClient {


    /**
     *  <desc>
     *      获取所有城市信息列表,首字母分组及城市ID与城市名称
     *  </desc>
     * @return
     *  @author cuiduanwu
     * @createDate 2017/9/28
     */
    @RequestMapping(path = "/home/getCitys" ,method = RequestMethod.POST)
    List<AppProjectAddressVO> getAllUsedCityInitials() throws  Exception;


    /**
     *  <desc>
     *      app2.0获取所有城市信息列表,首字母分组及城市ID与城市名称
     *  </desc>
     * @return
     *  @author Qiang.S
     * @createDate 2019/06/18
     */
    @RequestMapping(path = "/home/getNewCitys" ,method = RequestMethod.POST)
    AppNewProjectAddressVO getNewAllUsedCityInitials() throws  Exception;

    /**
     *  <desc>
     *      获取所有国家信息列表,首字母分组及国家ID与国家名称
     *  </desc>
     * @return
     *  @author shengen.T
     * @createDate 2017/9/28
     */
    @RequestMapping(path = "/home/getCountrys" ,method = RequestMethod.POST)
    List<AppForeignProjectAddressVO> getAllCountryInitials() throws  Exception;
}
